﻿@model IEnumerable<Planisoft.Entities.ValRegPensCab>

@{
	ViewBag.Title = "ListarRegPens";
}

@section js{
	<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
	
	<script type="text/javascript" >
		$(function () {
			$("input:submit, a, button", ".boton").button();
			$("a", ".boton").click();
		})

		

	</script>
	}

<h2>Listar Periodos de AFP</h2>

<fieldset> <legend>Periodos de AFP </legend>
<p class="boton">
	@Html.ActionLink("Ingresar Nuevo Periodo", "Index")
</p>
<table>
	<tr>
		<th>
			Codigo
		</th>
		<th>
			Año
		</th>
		<th>
			Mes
		</th>
		<th>
			Estado
		</th>
		<th></th>
	</tr>

@foreach (var item in Model) {
	<tr>
		<td>
			@Html.DisplayFor(modelItem => item.IdRP)
		</td>
		<td>
			@Html.DisplayFor(modelItem => item.anio)
		</td>
		<td>
			@Html.DisplayFor(modelItem => item.mes)
		</td>
		<td>
			@Html.DisplayFor(modelItem => item.Descripcion)
		</td>
		<td>
			<a href="@Url.Action("Details", "RegPEnsionario", new { id = item.IdRP })"> 
			<img src="@Url.Content("~/Content/themes/base/imgPlanisoft/edit.png")" title="Editar Valores AFP" alt="Editar Trabajador" />
			</a>
		</td>
	</tr>
}
</table>
</fieldset>
